Merged
Conversation
This commit adds a `.appends/.github/labels.yml` file, which contains the repo-specific labels. This file will automatically be combined with the Exercism-wide labels defined in https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml to form the `.github/labels.yml` file.
This commit adds a `.github/labels.yml` file, which contains the full list of labels that this repo can use. This file is a combination of the `.appends/.github/labels.yml` file and the Exercism-wide labels defined in https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml.
…bels. This commit adds a `.github/workflow/sync-labels.yml` file, which defines a workflow that syncs this repository's labels with the contents of the `.github/labels.yml` file. The labels are synced automatically whenever the `.github/labels.yml` file changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds:
.github/labels.ymlfile containing this repository's labels.appends/.github/labels.ymlfile, which contains all the repository-specific labels currently used in this repo..github/workflows/sync-labels.ymlworkflow to automatically synchronize this repository's labelsWith this setup, the labels that can be used in this repo are all defined in a single file: the
.github/labels.ymlfile. Thesync-labels.ymlworkflow automatically runs whenever this file changes, and will update the repository's label to match the labels defined in the.github/labels.ymlfile. Note that is will remove any labels not in the.github/labels.ymlfile, so be careful with removing labels from the.github/labels.ymlfile.The
.github/labels.ymlfile is auto-generated by concatenating these two files:.appends/.github/labels.ymlWhenever one of these two files change, a pull request is automatically submitted to update the
.github/labels.ymlfile. Merging that pull request will then trigger the sync-labels workflow, and the labels will be updated.With this setup, we are able to guarantee that each repository can use both the Exercism-wide labels and any track-specific labels.
Tracking
exercism/v3-launch#41